﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="PatronView.aspx.cs" Inherits="PatronView" Title="Patron View" MaintainScrollPositionOnPostback="true" %>
<%@ Register Src="PatronWelcome.ascx" TagName="Welcome" TagPrefix="ucWelcome" %>
<%@ Register Src="PatronBooksCheckedOut.ascx" TagName="ViewBooksCheckedOut" TagPrefix="ucBooksCheckedOut" %>
<%@ Register src="PatronLibraryFines.ascx" tagname="Fines" tagprefix="ucFines" %>
<%@ Register src="PatronManageAccountInfo.ascx" tagname="ManageAccountInfo" tagprefix="ucManageAccountInfo" %>
<%@ Register src="PatronReservedBooks.ascx" tagname="ReservedBooks" tagprefix="ucReservedBooks" %>
<%@ Register Src="ViewAnnouncements.ascx" TagName="ViewAnn" TagPrefix="ucViewAnn" %>
<%@ Register Src="ViewEvents.ascx" TagName="ViewEvents" TagPrefix="ucViewEvents" %>
<%@ Register Src="SearchBook.ascx" TagName="SearchBooks" TagPrefix="ucSearchBooks" %>
<%@ Register Src="~/PatronWelcome.ascx" TagName="PatronWelcome" TagPrefix="ucWelcome" %>
<%@ Register Src="~/PatronReports.ascx" TagName="PatronReports" TagPrefix="ucPatronReports" %>
<%@ MasterType TypeName="MasterPage"  %>

<asp:Content ID="Content1" ContentPlaceHolderID="leftSide" Runat="Server">
    <%--Drop Down List to select modes--%>
        <asp:DropDownList ID="ddSelectMode" runat="server" AutoPostBack="True"  OnSelectedIndexChanged="ddSelectMode_SelectedIndexChanged">
            <asp:ListItem Text="Browse" Value="Browse" ></asp:ListItem>
            <asp:ListItem Text="Design" Value="Design"></asp:ListItem>
            <asp:ListItem Text="Catalog" Value="Catalog"></asp:ListItem>
        </asp:DropDownList>
        
    <%--Link button to reset screen--%>
    <asp:LinkButton ID="lbReset" runat="server" onclick="lbReset_Click">Reset</asp:LinkButton>
    
    <%--Web part manager to manage the modules--%>
    <asp:WebPartManager ID="WebPartManager1" runat="server"></asp:WebPartManager>
    
    <%--Web part zone for left side--%>
    <asp:WebPartZone ID="WebPartZoneLeft" runat="server" LayoutOrientation="Vertical"
                     HeaderText="Left Column">
                     
        <%--Zone Template, this is where ascx files go--%>
        <ZoneTemplate>
            <ucFines:Fines ID="Fines" runat="server" Title="Fines"/>
            <ucManageAccountInfo:ManageAccountInfo ID="ManageAccountInfo" runat="server" Title="Manage Account Information" />
            <ucPatronReports:PatronReports ID="PatronReports" runat="server" Title="Reports" />
        </ZoneTemplate>
    </asp:WebPartZone>
    
    <%--Catalog zone--%>
    <asp:CatalogZone ID="CatalogZone1" runat="server" >
        <ZoneTemplate>
            <asp:DeclarativeCatalogPart ID="DeclarativeCatalogPart1" runat="server">
                <WebPartsTemplate>
                    <ucFines:Fines ID="Fines" runat="server" Title="Fines"/>
                    <ucManageAccountInfo:ManageAccountInfo ID="ManageAccountInfo" runat="server" Title="Manage Account Information" />
                    <ucPatronReports:PatronReports ID="PatronReports" runat="server" Title="Reports" />
                    <ucViewEvents:ViewEvents ID="ViewEvents2" runat="server" Title="View Events" />
                    <ucViewAnn:ViewAnn ID="ViewAnn2" runat="server" Title="View Announcements" />
                    <ucWelcome:PatronWelcome ID="PatronWelcome" runat="server" Title="Welcome Message" />
                    <ucBooksCheckedOut:ViewBooksCheckedOut ID="BooksCheckedOut" runat="server" Title="Books Checked Out" />
                    <ucReservedBooks:ReservedBooks ID="BooksReserved" runat="server" Title="Books Reserved" />
                    <ucSearchBooks:SearchBooks ID="SearchBooks" runat="server" Title="Search for books" />
                </WebPartsTemplate>
            </asp:DeclarativeCatalogPart>
        </ZoneTemplate>
    </asp:CatalogZone>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="center" Runat="Server">
<asp:WebPartZone ID="WebPartZoneCenter" runat="server" LayoutOrientation="Vertical"
                     HeaderText="Center Column">
        <ZoneTemplate>
            <ucWelcome:PatronWelcome ID="PatronWelcome" runat="server" Title="Welcome Message" />
            <ucBooksCheckedOut:ViewBooksCheckedOut ID="BooksCheckedOut" runat="server" Title="Books Checked Out" />
            <ucReservedBooks:ReservedBooks ID="BooksReserved" runat="server" Title="Books Reserved" />
            <ucSearchBooks:SearchBooks ID="SearchBooks" runat="server" Title="Search for books" />
        </ZoneTemplate>
    </asp:WebPartZone>
</asp:Content>

